﻿#ifndef QGEOCODEREPLYCUSTOM_H
#define QGEOCODEREPLYCUSTOM_H

#include <QtNetwork/QNetworkReply>
#include <QtLocation/QGeoCodeReply>

class QGeoCodeReplyCustom : public QGeoCodeReply
{
    Q_OBJECT
public:
    explicit QGeoCodeReplyCustom(QNetworkReply* reply, QObject* parent = nullptr);
    ~QGeoCodeReplyCustom();

    void abort() override;

private slots:
    void _networkReplyFinished();
    void _networkReplyError(QNetworkReply::NetworkError error);

private:
    QNetworkReply* _reply;
};

#endif // QGEOCODEREPLYCUSTOM_H
